import GlobalDialog from "../global";

const deleteTip = (store, router) => {
	let dialog = GlobalDialog(store, router);
	return (message, options = {}) => {
		let content = message.replace(/[\n]/g,' <br/> ');
		return dialog({
			title: options.title || '删除提示',
			width: options.width || '460px',
			content(h) {
				return h('div', {
					style: {
						color: '#F56C6C',
					},
				}, content);
			},
		});
	};
};

export default deleteTip;